﻿using Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;

namespace HangFire.Common
{
    public static class TimesWork
    {
       
        /// <summary>
        /// 自动清理对外api日志
        /// </summary>
        public static void AutoClearExtApiLlogs()
        {
            //using (var con = DapperFactory.CreateDefaultConnection())
            //{
            //    var getone = $"truncate table extapi_logs";
            //    var result = con.Execute(getone);
            //}
            Console.WriteLine("AutoClearExtApiLlogs");
        }
        /// <summary>
        /// yfc测试一个任务
        /// </summary>
        public static void Test()
        {
            //using (var con = DapperFactory.CreateDefaultConnection())
            //{
            //    var getone = "insert into extapi_logs (LOG_ID,LOG_MESSAGE) values((select nvl(max(LOG_ID)+1,0) from extapi_logs),'测试一条日志' )";
            //    var result = con.Execute(getone);
            //}
            Console.WriteLine("Test");
        }
    }
}
